package model

// 设置 `User` 的表名为 `User`
func (User) TableName() string {
	return "user"
}

type User struct {
	//gorm.Model
	Id       int    `gorm:"column:id;primary_key"`
	Username string `gorm:"type:varchar(50);column:username;index:username_idx"`
	Pwd      string `gorm:"type:varchar(50);column:pwd"`
	//CreatedAt time.Time `gorm:"column:created_at"`
}
